package com.zhang.server.service;

import com.zhang.server.common.Result;
import com.zhang.server.controller.request.BorrowPageRequest;
import com.zhang.server.entity.Borrow;
import com.zhang.server.entity.Retur;

import java.util.List;

public interface IBorrowService {
    List<Borrow> list();

    Object page(BorrowPageRequest bookPageRequest);
    Object returPage(BorrowPageRequest bookPageRequest);

    Integer save(Borrow book);
    Integer returSave(Retur retur);

    Result getById(Integer id);

    void update(Borrow book);

    void delete(Integer id);
    void returDelete(Integer id);
}
